﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ProgrammingEducationSystem.Models
{
    //班级毕业表
    public class EndClass
    {
        [Key]
        public Guid Id { get; set; }

        [ForeignKey(nameof(Class))]
        [Required(ErrorMessage = "班级Id不可为空")]
        public Guid ClassId { get; set; }

        public Class @class { get; set; }

        public DateTime EndTime { get; set; } = DateTime.UtcNow;

    }
}
